import 'package:fixnum/fixnum.dart';

class ChannelState {
  String? channel;
  Int64? id;
  Int64? timestamp;
  String? data;

  ChannelState({this.channel, this.id, this.timestamp, this.data});

  ChannelState.fromJson(Map<String, dynamic> json) {
    channel = json['channel'];
    id = json['id'];
    timestamp = json['timestamp'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['channel'] = channel;
    data['id'] = id;
    data['timestamp'] = timestamp;
    data['data'] = this.data;
    return data;
  }
}
